import java.util.Scanner;
public class square{
    public static void main(String[] args){
        try(Scanner sc = new Scanner(System.in)){
            System.out.println("请输入长方形的长");
            double num1 = sc.nextDouble();

            System.out.println("请输入长方形的宽");
            double num2 = sc.nextDouble();

            System.out.print("长宽分别为" + num1 + "和" + num2 + "的长方形面积为");
            ab(num1,num2);
        }
    }
    public static void ab(double num1,double num2){
        double result = num1 * num2;
        System.out.println(result);
    }
}